﻿namespace Service
{
	using System.Linq;
	using System.Collections.Generic;

    public class ExpressService:IExpressService
    {
        private Data.Repository.IExpressRepository _expressRepository;

        #region IExpressService Members

        public IList<Data.Entity.Express> GetAllExpress()
        {
            if (_expressRepository == null)
            {
                _expressRepository = new Data.Repository.ExpressRepository();
            }

            return _expressRepository.GetAllExpress();
        }

        #endregion
    }
}
